xl daemon: fix some memory leaks
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 17 Feb 2011 19:12:45 +0000 (19:12 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 17 Feb 2011 19:12:45 +0000 (19:12 +0000)
commit8f4208be5d25c6ed5773aa1bb23256764b941a17
tree80cf6dd6131c44b6726d7205c1b3609a0929737c
parentd25ba26a9a36065fccd36db82da46d87c2b86ec8
xl daemon: fix some memory leaks

If we are watching multiple disks we have to free multiple waiters.

Free the event before continuing the loop.

Destroy the disk device returned by libxl_event_get_disk_eject_info.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c